<!DOCTYPE html>
<html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
       
    </head>
    <body>
        <script>
      function demo(a,b){
          alert ("hello:"+a+"，我的年龄是:"+b);
      }

        </script>
        <button onclick="demo('xiaoming',20)">提交</button>
        <button onclick="demo('xiaohua',30)">anniu</button>
    </body>
</html>